package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysRoleDeptDO;
import com.sunyard.pcc.dal.query.SysRoleDeptQuery;

import java.util.List;

/**
 * Manager for SysRoleDept.
 */
public interface SysRoleDeptManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysRoleDeptQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysRoleDeptQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysRoleDeptDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysRoleDeptDO record);

    /**
     * select by query condition.
     */
    List<SysRoleDeptDO> selectByQuery(SysRoleDeptQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysRoleDeptDO> selectByQueryWithPage(SysRoleDeptQuery query);

    /**
     * select by primary key.
     */
    SysRoleDeptDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysRoleDeptDO record,  SysRoleDeptQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysRoleDeptDO record, SysRoleDeptQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysRoleDeptDO record);

}